package com.ll.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ll.common.utils.PageUtils;
import com.ll.gulimall.product.entity.CategoryEntity;
import com.ll.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author liliang
 * @email liliang@gmail.com
 * @date 2020-07-30 23:16:45
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMuensById(List<Long> asList);

    /**
     * 根据catelogId找到他的夫分类id 【2,22,225】
     * @param catelogId
     * @return
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascader(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    /*
   封装子分类数据
     */
    Map<String, List<Catelog2Vo>> getCatalogs();

}

